<#import "/analysis/function.ftl" as fn>
<@fn.header _title="中止情况原因统计">
<@fn.getStreet />
</@fn.header>
<body>
<@fn.position _value="当前位置 &gt;&gt; 差异情况统计 &gt; 中止情况原因统计" />
<div class="contentDiv">
  <div class="condition">
    <h2>统计条件</h2>
    <form id="listForm" method="post">
	    <table class="tableStyle">
	      <tr>
	        <td width="15%">中止核对操作日期：</td>
	        <td width="22%"><input name="acceptStartTime" type="text" class="btnTxtDate" id="textfield" onClick="WdatePicker()" />
	          至
	          <input name="acceptEndTime" type="text" class="btnTxtDate" id="textfield13" onClick="WdatePicker()" />
	          </td>
	        <td width="8%">所属区县：</td>
	        <td width="22%"><select name="countiesRegionId" class="btnSelect" id="country" onchange="getStreet(this.value)">
	            <option value="">-- 请选择 --</option>
				<#if countryRegionList??>
					<#list countryRegionList as region>
					  <option value="${region.id}">${region.name}</option>
					</#list>
				</#if>
	          </select>
	          </td>
	        <td width="11%">所属街道：</td>
	        <td width="22%"><select name="streetRegionId" class="btnSelect" id="street">
	            <option value="">-- 请选择 --</option>
	          </select></td>
	      </tr>
	    </table>
	    <table class="buttonT">
	      <tr>
	        <td width="10%"><input type="submit" class="button" value="统 计" /></td>
	      </tr>
	    </table>
	</form>
  </div>
  <div class="reasult">
    <h2>统计结果</h2>
    <table class="gridStyle">
    <colgroup>
    	<col />
        <col style="text-align:left;" />
        <col />
    </colgroup>
      <tr>
        <th>序号</th>
        <th>中止原因</th>
        <th>中止家庭户数 </th>
      </tr>
      <#assign numTotal=0 />
      <#list resultList as data>
      	<#assign numTotal=numTotal+ data.num?number />
      	<tr>
	      	<td>${data.id}</td>
	        <td class="textL">${data.reason} </td>
	        <td>${data.num}</td>
	    </tr>
      </#list>    
  	<tr>
      	<td colspan="2">合计</td>
        <td>${numTotal}</td>
    </tr>
    </table>
  </div>
  <div class="explain">
    <h3>说明：</h3>
    <p>1. 如一个家庭含多种中止原因，重复统计在各种中止原因中。</p>
  </div>
</div>
</body>
</html>
